fix bugs on create time table