Fixed some shadow bugs