Fixed crash bug and multiple item amount bug