fixed the null pointer issue, but sdb should still return a value