fix viewport in phantom