fixed classes bug in RF