Removing extra semicolons