fixed bug where you got always the same page