Fix incorrect math