fix $pach