fix observer for non primitive objects like date