Fixed numerical error