Fixed query broken after refactory of LocalCpuRecords default_scope