Fix bug when retrieving more than one extended property

Fixes #7