Avoid add the observer multiple times

Avoid add the observer multiple times