fix #1135
0 is a perfect fine value
min-max
Merge pull request #1136 from jodav/master

fix #1135