Bug fix: 
in CtaApplyModel API
and minor fixes.