fix point color selection bug
remove useless code