fix `min`/`max` mixup

![windowclipping 8](https://f.cloud.github.com/assets/1255913/2008887/10d9943e-8754-11e3-8e24-b8ed7b99a95e.png)