spacesAvailable bug fix

Fixed spacesAvailable for longStay testing.