Fixed logic in precision check