setPath clears previous path