prevent hang when no sd card inserted