fix global spell Id casts