[PD] average windows bug