fix bug with semi-colons inserted after a cond statement