Fix issues after removing gems