fix resume redirect