removed permission for SD card, fixed bug