Fix fail in editMode