Fix bug with paths