Fix iOS finish bug