fix some bug for ppxx