fixed generate classes