beat detect not working