Fix error when clearing before evaluate is pressed