PE: fix a possible crash