fixed a bug in a double find