fixed a seg fault with respect to the autopick up rules, i to j