fix name check