fixed the timebar to take action when it is empty