Fixed an issue where enableShadow/disableShadow doesn't work after a shape added into the layer.