repair some bugs adds tabs