Fixed a weird polygon shallow copy bug