fixed insert trade errors