this problem occurs when joining active record but not selecting the primary key field. records get populated but they do not have primary key value populated which results in only one record left over in the result.