Fixed "Last-polygon-not-displaying" bug. Added three lines before actual
polygon creation, after polygon arrays creation.