correct fatal_error logic