fix bug in new and edit form for selectlists