fix the initial manifest logic