Fixing bug when assigning a new observer