Fixed miss.
to make be able to cycle table_id_seq
Updated version.