fix the compatible issue with 1.8
fix the compatible issue with 1.8