Fixed error on which contract search was too much restricting.