Missed end bug