latest code generated
fix possible exception