gem file fixes