fixed major crash in trading