legend and double point bug