fixed crash when there are too many shadows to render