Fixed bug in FloodFill