Fixed card z-order bug