Fixed bug in loading first page