fix some behavior of autotag