Fix crash when "shadows" is false