fix negative rounding
Merge remote-tracking branch 'origin/master' into Zuevo