fixed an issue in history view functionality