Fixed a bug preventing proper gem installation