Fix exists conditions