fix bug simulaRBC