Fixed namespace check mistake

You accidentally put the wrong class name when updating for the use of namespace.