fixed a date transition issue