manifest: fix bugs that caused by carelessness