bugfix on converting tabs to markup when upgrading