fixed setHPD