resolve gem config bug