Fix file controller bug