Fix the fleet type detection bug.