fix redirect error in general controller class