correction of small bug in table.js