small improvement of the observer. It doesn\'t fix any bug but make the code cleaner