fix issue that close button displayed not well