Fixing bug with multimats shadows