fixed hacked edit bug