Fixed deep level primaryManifest nesting

Signed-off-by: Tom Wright <tom@inflatablecookie.com>