fix viewport on scheduler