fix for ImproperlyConfigured exception