Fix an issue where semi colons could be generated twice.