fix bad calc