fix UI bug where history empty message was not disappearing