Fixed calculate issue about ALL IN