fix run if fail with memory