Fixes a bug with cooldowns

Closes #102.