fix first time build errors