Fix stack level too deep error when caster name is wrong