fixed crash by not inputting a quantity change