Updating firebase to not throw errors