In sidebar.tpl.html, the limit clause should be added *after* the filter...

... clause, otherwise some metrics may not be found