bug fix to bammdoc1.Rnw