correct bug on transition