fixed a bug where non-polygon shapes wouldn't render
