corrected the edit bug