Fixed a bug with the item sidebar (in an awful way)