fixed enqueue scripts bug