Eliminate duplicated semicolons