Fix transition bug.