Fix issue with Element not having all the required properties

Fixes #349