fixed search ereg errors