fixed minor problem with tabulate