fix silly warning comparing an int to NSNotFound