fix bug in computing B in VB when some elements of matrix_lik are treated as zeroes