fixed bug in table.php