fix bug, can run for rf and zm