fix average component and style share dialog