bugs fixed in PathReader