fix issue when gem is not found