fixed bug in saving closed trade record