fix wrong calc