fixed trashing

fixed trashing  if only 1 item in shadow array