Fix for blank page on redirect