j+1 in bug587