A note on computations of the D-brane superpotential