Fixed bug that prevented polygons from being closed.

Signed-off-by: Cruz Monrreal II <Cruz.Monrreal@gmail.com>