Fix bug for setShadowVisible.