Fixing firebase persistence