modal redirect fix