fix for looping and else if

also make sure OpenNC - update 3.961 is removed