fixed syntax error with date