Make sure foreign key properties are fully registered

/to @ritch Fix a regression