Fix a bug when read the data

It failed because the function return string. Sorry for that. Now it works.