Fixed bug with negative available days