Fixed function call to getFileName

getFileName returned a function which was not called