fixed issue with populate and plain references.