Fix activity transition.