bugfix for klass.js