fixed bug with async currentTime and changing frame index to last frame