give minimum value to v when zero
Merge branch 'master' of github.com:marcelrf/shepherd