PE-1659 - Fixed some error messages.
Fixed a typo in the AiTemplateBuilder.