Fix setPath callback