PG.h: fix init_primary bug