Fixing bug in locate_conditions

Current gem is incorrectly accessing the :locate_conditions function, and so it is never being called.