Fixed inventory/UI bugs.