fix firebase connection bug