fix struct error