Fix transition crash