Fix issue with red autofill selection borders being left in incorrect state.