Fixed Bugs while Trading that allowed clicking invalid locations to cause seg faults