fixed the exists() behavior in wattr