Fixed crash when previewing student pages