fixed bug with wrong number of shadows when single shadow