fixed type error on paths