Added fix on element_exists extension