fix emit of stage