Fixed crash on edit: selected behaviors can be modified and saved on new and edit