fix bug in shadows