Fixed a bug with items being added improperly