Fixing cta variable syntax bug