Fix compilation errors mainly unintialization of shit