Corrected conditional gem list