fixed a bug in STkernel and multinomial ERP