fix classmap generator