fixed inventoryoutofspace even when there is space