Fixed the file controller