Fixed bug duplicating calls to amOnPage and amOnRoute.