fixed internal_ref pb in statements view