Fix bug in path parser