Fix register page bug