fixing a schema bug for smaller tables