Fixed a few bugs with the status and inventory functions