Spent the whole day after this syntax error in pagination
Cleanup