fixed error where program would crash towards end of month