Fix gem loading