fixed history_on? if date is nil