fix wcf null reference