fixed weird bug in add_item