changing bug in pages controller