fixed some relation mistakes.