[rcpub] Fix some bugs found.