fix viewport def