Fixed a bug with polygon fill.