fix bug to calculation usage