fixed beat tracker div-by-0