fixes target sharing