Wrong check for history-level