Fixed delete variable errors