Fixed rounding error when changing split amounts

Fixes #367.