Fix bug with analyzeFinal.