Fix doCheckName - accidently the implementation was replaced with wrong
one