Fix error in asm.spt setting up target-related variables.