fixed bug where program would pull wrong day in certain cases