fix bugs on creation/update when no option selected for accounts