fix for gem