small improvement on legend position