Trying to fix large value errors