fix history empty