Fix edit mode (no delete on non edit)