fixed bugs in zoom and position ranges