fixes for weka interface