fix read params bug