bugfix: ForeignKey handling actually fixed.