fixing gate cooldown