remove duplicated setviewport