fixed bug in getCurrentBeat - workding now