fixed program from crashing when switching tone's too quickly