fix error in coap lib for observing