check for viewer history index before reading