fixed join path logic.