fix redirect after catch exception