Slight improvement to legend placement