fix bug on brushing main plot