closepath was missing