fixing bug with min zoom not working