fix redirect from controller