showProfile changed, searchFunction check that max is not smaller than min fields