fixed search hash calculation - infinite recursion on model definition