miss by one error fix