fixed viewport/zooming bugs