make shadow-layout works again