Fixes where an ActiveRelation was being returned instead of the recordset