fix error where clearLine was not defined