fixed npe
enabled update on network change