fixed finalizing
fixed finalizing