workaround "AttributeError: 'str' object has no attribute 'get'" error