Fix rename sequence failure.
Merge pull request #337 from keit/rename_table_fix

Fix rename sequence failure(issue #336)