Error fix in analysis add-in

Hopefully the last bug fix on the analysis add-in!