pages error handling fix