fixing gem references