fix complex method in klass.js / klass.define