fixing broken gem