Correct errors in add and multiply blocks