fix cannot edit bug.