Fixed redirect to back from generation.