I am handling the problem of tables smaller than max length