fix ai win error