fix bug on self FK