PLD: fix deleted_at test check