Fix transition according to device state