Fixed transition bug.