Fixed file edit bug