fix some errors for set re=1

fix #27