fix bug in ttv