Android firebase auth state listener called multiple times

I am using Firebase android sdk v.9.0.2 and can't get past the registration for now. I am adding an auth state listener and removing it on successful registration. Yet it is called multiple times. This is what i'm getting in my logs:

The "D/ActivityRegister: auth listener called" log is inside the listener iteself. As you can see, when Firebase notifies 0 listeners, it is actually called. And when it shows 1 listener, the listener doesn't get called at all.
Is there any workaround for this?