Update identity.rb

Fixing bug in locate_conditions