fix the compatility bug