Fixing a bug in smash attempts