Fixed problem with gems