fixed quick bug in date