fixed some problems with zooming