fixed max and min zoom bug