Fix issue with redistribution when shadow is present

Fixes #432