Fix node className undefined error.