[#442] fixed crash when amount is deleted