minor fix
shape legend disapear bug fixed