fix gem loading