important bugfix on populating objects - api