fix firebase error