fix gem initialization