fix reading error