fixed crash on done