fixed calculation of song position