fixed missing value issue in n-class