Fixed square_table bug