Fix for classical mistake

It was impossible to set `0` as maximum or `0` as value.