some compilation fix for R1.