handle states rendering errors