Fixed "Internal Server Error" when moving items in inventory