fix struct errors