when drawing a line, when points are connected the interior is automatically filled

im simply trying to create an outline of an image and once the nodes are connected to complete the image, the image is automatically filled in. i do not want it filled. even when I x the fill the outlined lines disappear.