bug in allow_edit