Revert "Fix file controller bug"

This reverts commit 32fb75345a2eaebfacccee25f12f6bfae4287d30.