fix message in generate