fixing bug in editEntry