fix but, when no connection