modified Base.php for correct create footer in table