Fix sdcard problems