finalizing bugs