fix for the error AttributeError: 'tuple' object has no attribute 'content'