another measure to stop forigen_id error