fixed that date bug