remove undefined local var