Fixed bugs related to taking items out of the GUI