fix sd card issiues

This reverts commit f0f2ced2ffe3674285dd6630c6c8304fb332be9c.