Fixed legend behaviour (when grid got in range) and appearance