fix for pawn calculation