Fixed date bug on index