logic error on default dates