fix bug: failing to find the active example to scroll to.