fixed a bug with paths