Bug fix for beeping.