fixed bug in cooldown