fixed issues with Elastic Search exists function