Fixes in table

 - force callback to be a function
 - fixed the undefined variable