fix some offscreen behaviour.