Fixed a bug in passing class weights to RF1