Fixing manage script