Getting wrong value from sd card