fix layer of card window