Fixed bug with calculating remaining cooldown time