fixed  edit bug