Fixed HTML error handling.