fixed bug with single pages