fix for position and color of legend