fix check gem exists