fix finish bug