Fixed the classification bug