Fix firebase bug