fix hour transition issue