fix for error when there is no connectivity