fix for inactive shadows (from gregs commit)