fixes bug where buildid and builduid are ref before init