fixed last legend and style popup image