Fix class preview behaviour (regression caused by the PageController refactoring).