fix #1863
Avoid reading when it is not necessary in pDj