Fix an error when the precision is invalid