Fix for issue #25, returned object properties are now initialized.