Add a simple judgement to garantee the DLP valid after trying to use it.