fix not existing error_code startswith bug