Made children correction more generic