Fixed bug in tbl.php