fixed #3460 fixes dead while.