It's a bug. After changing the background color, you have to select another color, then select the eraser again.