fixed a bug in the input transition initialization