fixed a bug when a script without update meta data is enabled or disabled