fix indexOf comparison to filter out id fields for inflated associations