fix finishing game issue