Fix bug in replacing tsus