bugfix: not using the proper object in forEachOwn