Fix infinite loop w/ 'analysis add' command