remove doubled let namespace in register_resource_spec