fix bug in fitBVS.R;backup 20141002-2