changes for gem error