Fixed wrong branching in timemenu