fix manifest bugs