fixing bug around where the relationship could have been around constraints