fixed error in tabularize formatting function