fixed bug in dj.Table/addForeignKey