fixing date naming bug