Fixed floodfill freeze issue.