Fix show shadows logic