Hopefully fixed problems with missing specialized database entries
Merge pull request #243 from dswd/fix-failed-to-cast-element

Hopefully fixed problems with missing specialized database entries
Merged in upstream