Try to fix crashes with redirection