fix broken redirect