Fixed arithmetic mistake