bugfix for active page class