Fix gendef lookup