[script plugin] fixed UI bug