fix for issue #5

Related fields will crash app on import