fixed a bug in get_supermethod: if super class id is no_idx, do not proceed anymore