fix crash when removing line without quantity