replace table to 4 spaces and fix set_base bug.