Fix deleteOutputVariable