[PD] weird fopen behavior