Fix recursive file reader