fixed some issues in the maximum entropy classifier