fix no connection bug