small fix on pages controller