fixed bug with singe pages