fix: slight tweak to $observe code