fixed bug in Exist() method