maybe solved nan reading error