fix $watch 'doc.entries' bug