Fixed issue with single day not creating a PDF