fixed enqueue script issue