God doesnt Justify the elect for their natural sinfulness, ungodliness, but because, Christ has died for them, and His Righteousness has been charged to their credit See 2 Cor 5:21. So they are legally righteous on a just ground, while they themselves are ungodly prior to conversion.