fixed bugs in action_edit