Fixed the same bug for setCurrentLine.