Fixing bug in pages