Fixing uninitialized struct