Fix a bug in generate_pawn_captures()