fix period label bug on starting new day