fix bug redirect