fixed bug when at start first page not lead to next one