fixed some of the things the new shadow implementation broke