correct some error in ajax of newclass