Fix buggy shadows caused by commit bac5e6