fix one digit date bug