fix read problem