Fix for setCurrentPos