remove dup semicolons