Your thinking the right way. Check the detents_cables first but if those don't fix problem then the transmission will have to come out and second gear set replaced. Have seen a bungee cord on the shifter in the cab work in an emergency to finish a day or two but it will wear the shift fork in the transmission.