Changed variable from active record relation to active record result set in the warning level scheduler.