fixed pfd generator bugs