fix bug in computeMarginal.m: more simple