bug fix which caused editing to result in an error