fixed bug in data reading format