Fixed character edit bug