fixes defect for adding error urls to the error html file