minor fix on foriegn key contraint