Fix edit check