left trade and course undo,fix reg bug