fixing bug in class dump creation