[Mod] Check nil for dp and psp