Fixed bug. Test on multiple declaration of observed variables was wrong.