solved remaining time bug