bug fix for firebase auto disconnect