Run the program with cmd.
Your picture shouldn't contain provinces, or a blob of a single color, which are a single pixel big. You shouldn't have a province, which enclaves another province comlete. Most probably, you have to split your ocean into two provinces.