Fixed some error tolerance