fix code generation for *status