Fixing polygon reset when user draws another polygon.