Fixed NPE, file controller now gets a FileManager