wrong transition bug fix