Fix setPath signature