Remove unnecessary path variables in pri.