fixed illegal checkExternalProcess call