Fix transition rules