bugfix: do not getThis() on constructors