Fixed incomplete rename currentFilename.