Fixes bug in _update_min_max
Merge pull request #38 from blazetopher/fix_minmaxupdate

Fixes bug in _update_min_max