Fixed nullpointerexception on Tpdahp