bugfix: members returned would otherwise be lost in a local variable