fixed index issue for genjets and pftau gamma candidates