Fix the bug in EnhanceBestShip.get_target_and_materials.