Trying to fix discretization errors