Fixes wrong behavior when unit is even number.