Bugfix for rendering with style=__class__