fix wierd gunicorn error from setting permission in mdm.__init__.py