Fix dpa bug in dpf (thanks @zlul)