fix null reference ex