fixed status generation.