minor fixes
fixed dates with single digit dates being ignored