Working out some bugs with paths