resistance end bug fix