Bug fixing in libstruct operator []