Bug fix: Error pages redirecting to default theme pages