fixed ledgend placement