If error happens - stay in edit mode.
minor.