Fixed error templates for Foundation 5.