I know I call ami_clg in a couple of places manually, IIRC the reason
was that when clicking on a link to certain content (SVG, I'm sure
there were others too) didn't clear the previous page so you ended up
with the SVG superimposed on top of the previous page.
I can easily replace these calls, but there may be another issue there
that needs looking at.