Somebody smarter than me needs to take look why for some reason tool is changed to null during SWM init.