manage script bug fixed