Fix Ril-library bug