Fill Bucket issue

Contiguous mode should be on if you want to fill only the connected (contiguous) area. When it’s off, then all pixels of the matching colours are filled, even ones not connected to where you clicked.