bug fix for history checkbox