Quick patch to fix a bug with polygon shapes.