Fixed security issue when showing history.