fix parsing manifest