avoic bad fkey in assignments