Fix bug in PEs.