Fixed bug in generating a class entry