Fixed bug in path.c.