Fix crash on negative values
Merge remote-tracking branch 'origin/master'