Fix a type issue, make pages work properly