Fix pex not loading correctly