Fixes a bug in FileController->getMetadata()