fixed bug with ds