Fix bug relation state machine from Resume, Vacancy, Company