fixed pawn bug