Fix ore dict compatibility

This should fix #579.