fixed bug on creating SD