Fixing bug in get_class_ns