AdminPagesController bug fix