Bugfix: fixed change_tset function logic error