fix the bug when was making presumption about ds