fixed bug for active page class