Fixed the beat detection drawing incorrectly