fixed bug that forget to merge SDs