Fixed a couple of bugs in bvec reported by Sumit.