fix a formula, thanks to Liusic