fix table ratio