fix struct bug