[mr2787] Fix spell_script_target queries.