fixed viewport resizing - stable memory