fix ZGetAll bug