fixed trade creation bug