Some fixes to the pt-rank and 4th jet code