fix for #160

problem was that B was declared as optional argument, and it was wrapped into seq, not
passed as matrix