fixed RBF bugs