fix mark as done bug