fixed remove of variable