fix redirect to default to first uri