Fixes bug in temporary file name (filePath)