Fix for #370
Merge pull request #371 from kyleabeauchamp/elem

Fix for #370