Equality conditions fixed