Minor bug fixes to advice computation in mapEntry.js