remove extraneous semicolons in macro