fixed bug on first page