Fixed bug in classification API POST