Fixed bug in functions for classifier reading data

Fixed bug in functions for classifier reading data