Merge pull request #651 from polyetilen/patch-1

Logic error in pages tutorial code example.