Less complicated divide and fix error