fixed logcache query with contacts