[helper]fixed a few bugs