Fixes shadow as per platform master.