Fixes for the sim_return_selected() method.
Authored by: bugman 2008-09-26
Parent: [r7379]
Child: [r7381]