fixed erroneous syntactically wrong foreign keys