Fixed weird build errors