Don't use masked pixels when computing limits