fix bug on inner FK loading