fix manage script