Fixed order of template variables in error message.