fixed crash related to pffile.