Fix min/max (again!)
Merge pull request #9 from bjz/min-max

Fix min/max (again!)