bugfix check profit of trade