For this target, for uninteresting reasons about file formats, the following line in RunPrepLigand for Vina/Gnina:

    tail +2 testlig-$1.mol2 | sed '/MOL_PROPERTY/Q' > testlig-fix-$1.mol2

Need to be changed to this:

    tail +1 testlig-$1.mol2 | sed '/MOL_PROPERTY/Q' > testlig-fix-$1.mol2

