Fixed a couple of bugs in utilities.klass