Fix bug with exists property