fixes Firebase loading issue