Fix EachChild for error_code checking