Fixed recurring flash and redirect erros