fixed some zoom related bugs in zoomcore