fix tolerance