fixed bug, looping on days avail