Adjusted the missing spellgems code to be more efficient