fixing AttributeError: 'QgisInterface' object has no attribute 'read_settings'