Fixed bug with zooming

fixed #20