fix exception when loading kdp with no wrapper