BUG:  Modulo operation for text bar.