Fixed bug in pages parsing