Legend inline-block display bug fixed.