fix missing namespace code