fixed permitDocument loader. increased permit limit to 2Million