remove undefined variable klass